package com.study.excel.easyexcel.model;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @Author hupengming
 * @ClassName
 * @Date 2022-11-01 11:03
 * @Version 1.0
 */
@Data
public class ProductExcelModel {

    @Excel(name = "商品名称")
    @NotEmpty(message = "商品名称为空")
    private String name;

    @Excel(name = "价格")
    @NotNull(message = "商品价格为空")
    private BigDecimal price;

    @Excel(name = "制造商")
    @NotNull(message = "制造商为空")
    private String manufacturer;

}
